package edu.spec.wfl.week02.class2;

public class Shuchu{
    public static void main(String[] args){
        int i,j=0,c=1,y=0;
        for(i=0;i<=200;i++){
            int temp=(int)(Math.random()*500)+100;
            System.out.print(temp+" ");
            if(c%10==0){
                System.out.println();
            }
            c++;
            if(temp%2==0){
                y++;
            }
            else{
                j++;
            }
        }
        System.out.println("偶数的个数："+y);
        System.out.println("奇数的个数："+j);
        System.out.println("偶数出现的概率为："+(y/2)+"%");
        System.out.println("奇数出现的概率为："+(j/2)+"%");
    }
}